Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit ca743bc
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview7 package(s) bumped directly, 0 bumped as dependents. 🟨 Minor bumps
|
@tanstack/angular-store
@tanstack/preact-store
@tanstack/react-store
@tanstack/solid-store
@tanstack/store
@tanstack/svelte-store
@tanstack/vue-store
commit: |
) * feat: introduce more frameworks hooks for other non-react adapters * new changeset * ci: apply automated fixes and generate docs * remove dedicated setValue and useAction hooks. Add new useStore hooks with _ * ci: apply automated fixes and generate docs --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore: migrate builds to tsdown and upgrade all deps * changeset * clean up solid exports and node types overrides * reapply exports in package jsons * add back yaml * fix yaml config that was accidentally deleted * format * feat: new set of react hooks * ci: apply automated fixes and generate docs * fix package.jsons * feat: add actions to stores (#307) * feat: add actions to stores * ci: apply automated fixes and generate docs * simplify context hook impl * ci: apply automated fixes and generate docs * feat: introduce more frameworks hooks for other non-react adapters (#308) * feat: introduce more frameworks hooks for other non-react adapters * new changeset * ci: apply automated fixes and generate docs * remove dedicated setValue and useAction hooks. Add new useStore hooks with _ * ci: apply automated fixes and generate docs --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * also bind subscribe * replace `new Store` with createStore in examples * remove useValue, make selector optional in useSelector * add solid context helper * update changeset * format * improve store action examples * fix some api ref docs links --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
🎯 Changes
Add optional typed actions to
@tanstack/storewritable stores and wire the React adapter/examples up to that new API.What Changed
createStore(initialValue, actionsFactory)for writable stores.Storeto support typedactionsbags viaStore<T, TActions = never>.createStore(fn)still returns a readonly derived store.useStoreActionsto@tanstack/react-store.useCreateStoreand React store hook typings to support stores with actions.Notes
createStore(fn, actions)remains unsupported at the type level so function-first-arg keeps its existing readonly-derived meaning.✅ Checklist
pnpm test:pr.🚀 Release Impact